package com.hjm.friend.domain.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hjm.common.core.domain.BaseEntity;
import lombok.Data;

@Data
@TableName("tb_exam_question")
@JsonInclude(JsonInclude.Include.NON_NULL)
// 竞赛 题目之间的关系
public class ExamQuestion extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "EXAM_QUESTION_ID", type = IdType.ASSIGN_ID)
    private Long examQuestionId;                 // 竞赛题目id

    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;                         // 竞赛id

    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;                    // 题目id

    private Integer questionOrder;
}